The apply Attribute
From Documentation
This documentation is for an older version of ZK. For the latest one, please click here.
It specifies a class, a collection of classes that are used to initialize the component. The class must implement the org.zkoss.zk.util.Composer
interface. And then, you can do the initialization in the doAfterCompose
method, since it is called after the component and all its children are instantiated.